{% extends 'base_loggedin.html' %}
{% block title %}
{{ block.super }} | New feed
{% endblock %}

{% block block_content %}
<div class="top">
    {% ifequal mode "edit" %}
    <p class="left">Edit Feed</p>
    {% else %}
    <p class="left">New Feed</p>
    {% endifequal %}
    <p class="right"><a href="/" title="">Back to Dashboard</a></p>
</div>

<div class="center">

    <form name="newfeed" action="." method="post">

    <ul class="txt full">
        {% if subscriptionError %}
        <li>
        {{ subscriptionError }}
        </li>
        {% endif %}
        {{ form.as_ul }}
        <li>
            <label>Select Conduits:</label>
            <ul style="float:left" class="other">
                {% for conduit in conduits %}
                <li>
                    <input id="id_conduit_{{ conduit.id }}" type="checkbox"
                        name="conduit_{{ conduit.id }}"
                        {% if conduit.selected %}
                        checked="true"
                        {% endif %}
                    >&nbsp;{{conduit.name}}</input>
                </li>
                {% endfor %}
                <li>
                	<a class="btn" href="/new_conduit?next=/new_feed" title="">New conduit</a>
                </li>
            </ul><br style="clear:both" />
        </li>
        <li>
            <a class="btn2" href="javascript:document.newfeed.submit()" title="">Save feed</a>
        </li>
    </ul>

    </form>

</div>
{% endblock %}
